<?php
if(!empty($_POST)){
	require('connect.php');
	$userId = $_POST['userId'];
	$tankId = $_POST['inventory-tank-id'];
	$tankSize = $_POST['inventory-tank-size'];
	$tankProduct = $_POST['inventory-select'];
	$tankBlender = $_POST['inventory-blender'];
	$tankBlenderType = $_POST['inventory-blender-type'];
	$tankManifold = $_POST['inventory-manifold'];
	$tankNo = $_POST['inventory-tank-no'];
	$notification = $_POST['inventory-notifications'];
	
	$sql = "INSERT INTO TankInventory (UserID,TankID,TankSize,Product,Blender,BlenderType,Manifold,TankNo,Notification) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)";
	$params = array($userId,$tankId,$tankSize,$tankProduct,$tankBlender,$tankBlenderType,$tankManifold,$tankNo,$notification);
	sqlsrv_query( $conn, $sql, $params);
	sqlsrv_close($conn);
}
?>